# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Kevin Piche <kevin@archlinux.org>
# Contributor: K. Piche <kpiche@rogers.com>

pkgname=perl-carp-clan
_realname=Carp-Clan
pkgver=6.08
pkgrel=4
pkgdesc='Report errors from perspective of caller of a "clan" of modules'
arch=('any')
license=('PerlArtistic')
url="https://search.cpan.org/dist/$_realname/"
depends=('perl')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_realname-$pkgver.tar.gz")
md5sums=('34fe04102374516ef7a105375b95ffde')

build() {
  cd $_realname-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd $_realname-$pkgver
  make install DESTDIR="$pkgdir"
}
